package com.quick.proxy.server;

import com.quick.proxy.core.ProxyChannel;
import com.quick.proxy.core.VisitorChannel;
import io.netty.util.AttributeKey;

import java.util.Map;

/**
 * Description: channel绑定信息
 * Author: 吃素不吃肉
 * Date: 2023/6/30
 *
 * @author 吃素不吃肉
 */
public class ServerChannelAttribute {


    /**
     * 访问者通道绑定代理通道
     */
    public static final AttributeKey<ProxyChannel> PROXY_CHANNEL = AttributeKey.valueOf("proxyChannel");
    /**
     * 代理通道绑定访问者id对应的访问者通道
     */
    public static final AttributeKey<Map<String, VisitorChannel>> VISITOR_ID_CHANNEL = AttributeKey.valueOf("visitorIdChannel");
    /**
     * 访问者通道绑定访问者id
     */
    public static final AttributeKey<String> VISITOR_ID = AttributeKey.valueOf("visitorId");

}
